﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnesSystem.Controls.CommonTables.CQ.RCYY
{
    /// <summary>
    /// ShuHouFangShiCtrl.xaml 的交互逻辑
    /// </summary>

    public partial class ShuHouFangShiCtrl : CustomCommonTableCtrl
    {
        public ShuHouFangShiCtrl()
        {
            InitializeComponent();
           
           

            IniteRadioBation();
            this.Loaded += ShuHouFangShiCtrl_Loaded;
           
        }

  
        private void ShuHouFangShiCtrl_Loaded(object sender, RoutedEventArgs e)
        {
        }

       
        private void rq_GotFocus(object sender, RoutedEventArgs e)
        {
            CusDatePickerWin cusDatePicker = new CusDatePickerWin();
            cusDatePicker.SelectedDateTime = DateTime.Now;
            cusDatePicker.ShowDialog();
            if (cusDatePicker.Result)
            {
                rq.Value = cusDatePicker.SelectedDateTime.ToString(DateFormat.DATE_FORMAT_STR_YMD_CN);//2005年11月5日
            }
        }
        private void IniteRadioBation()
        {
            new RadioButtonHelper().ChangeRadioSatus(smtzbwd, smtzwd);
            new RadioButtonHelper().ChangeRadioSatus(ysbqc, ysqc);
            new RadioButtonHelper().ChangeRadioSatus(hxkn,hxzc);
            new RadioButtonHelper().ChangeRadioSatus(xhbwd,xhwd );
        }

       

      
    }
}
